#!/bin/bash

echo "=== 重新编译测试 ==="

# 编译
echo "编译程序..."
gcc -o exif_main exif_main.c exif_lib.c -lm
if [ $? -eq 0 ]; then
    echo "编译成功！"
    
    # 运行
    echo "运行程序..."
    ./exif_main 20250724_153209_731.jpg
    
    # 验证
    echo "验证结果..."
    exiftool -v ai_snapshot_exif.jpg
else
    echo "编译失败！"
fi 